//仪表盘数据
import request from "@/utils/request";

export const getAboutListApi = (params = { page: 1, limit: 10 }) => {
  return request({
    url: "/about",
    method: "get",
    params,
  });
};
//删除
export const delBannerApi = (ids) => {
  return request({
    url: "/banner",
    method: "DELETE",
    data: {
      ids,
    },
  });
};
//根据id获取当前数据
export const getBannerApi = (id) => {
  return request({
    url: `/banner/${id}`,
    method: "get",
  });
};
//新增
export const addBannerApi = (data) => {
  return request({
    url: `/banner`,
    method: "post",
    data,
  });
};
//修改
export const updateBannerApi = (id, data) => {
  return request({
    url: `/banner/${id}`,
    method: "put",
    data,
  });
};
